<template>
	<view class="mainpadding">
		<u-modal :show="show" cancelColor="#555" confirmColor="#2361FF" :showCancelButton="true" :title="title"
			@cancel="cancel" @confirm="confirm"></u-modal>
			<view class="flexbetween xiahuaxian" @click="jumper('/pages_mypage/yijianfk')">
				<view class="sanshier xiaohei">意见反馈</view>
				<u-icon name="arrow-right" color="#CCCCCC"></u-icon>
			</view>
			<view class="flexbetween xiahuaxian margin_top" @click="jumper('/pages_mypage/guanyuwomen')">
				<view class="sanshier xiaohei">关于我们</view>
				<u-icon name="arrow-right" color="#CCCCCC"></u-icon>
			</view>
		<view class="gudingdb ffffff mainpadding">
			<view class="bigbtn">退出登录</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				show: false,
				title: '确定要退出当前账户么？',
			}
		},
		methods: {
			jumper(url) {
				uni.navigateTo({
					url: url
				})
			},
			confirm() {
				this.show = false;
				// 将存储的数据改为空达到退出登录的效果
				uni.setStorageSync('token', "");
				httpRequest.toast("退出登录成功")
				setTimeout(() => {
					uni.redirectTo({
						url: '/pages/login/login'
					})
				}, 1000)
			},
		}
	}
</script>

<style>

</style>
